package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.SensitiveDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmSensitive;

/**
 * @author: liudehuan
 * @description
 * @date: 2023-04-25 1:31
 */
public interface WmSensitiveService extends IService<WmSensitive>{
    /**
     * 管理端获取敏感词列表
     * @param dto
     * @return
     */
    ResponseResult getSensitives(SensitiveDto dto);

    /**
     * 保存敏感词
     * @param sensitive
     * @return
     */
    ResponseResult saveSensitive(WmSensitive sensitive);

    /**
     * 编辑敏感词
     * @param sensitive
     * @return
     */
    ResponseResult updateSensitive(WmSensitive sensitive);

    /**
     * 删除敏感词
     * @param id
     * @return
     */
    ResponseResult deleteSensitive(Integer id);
}
